export type VariableType = 'number' | 'string' | 'boolean' | 'color';

export type FormControlTypeEnum =
  | 'input'
  | 'input-number'
  | 'switch'
  | 'slider'
  | 'select'
  | 'checkbox'
  | 'color-picker';

type VariableTypeItem = {
  label: string;
  value: VariableType;
  formControlType: FormControlTypeEnum;
};

/**
 * 变量类型选项
 */
export const VariableTypeOptions: Array<VariableTypeItem> = [
  {
    label: '数字',
    value: 'number',
    formControlType: 'input-number',
  },
  {
    label: '字符串',
    value: 'string',
    formControlType: 'input',
  },
  {
    label: '布尔值',
    value: 'boolean',
    formControlType: 'checkbox',
  },
  {
    label: '颜色',
    value: 'color',
    formControlType: 'color-picker',
  },
];
